import request from '@/utils/request'

export function show_by_bbkh(query) {
  return request({
    url: '/user_list',
    method: 'get',
    params: query
  })
}

export function show_clb_now(query) {
  return request({
    url: '/fuwu/clb_list',
    method: 'post',
    params: query
  })
}
export function show_clb_now1(query) {
  return request({
    url: '/fuwu/clb1_list',
    method: 'post',
    params: query
  })
}

// 车票表：改乘操作
export function show_cpb_by_bbkh(query) {
  return request({
    url: '/fuwu/cpb_list',
    method: 'get',
    params: query
  })
}
// 通过目的车站进行相应展示列表
export function show_by_mdcz_list(query) {
  return request({
    url: '/fuwu/cpb_by_mdcz_list',
    method: 'get',
    params: {"xlbh":query}
  })
}
// 车票表：退票操作
export function cpb_tuipiao_py(cpbh,pj,user) {
  return request({
    url: '/fuwu/cpb_some',
    method: 'post',
    data: {'cpbh':cpbh,'pj':pj,"spy":user}
  })
}
// 退票操作中   退票员约束条件
export function cpb_tuipiao_by_cpzt(spy) {
  return request({
    url: '/fuwu/cpb_get_tuipiao_by_cpzt',
    method: 'get',
    params:{'spy':spy}
  })
}

export function showUser(data) {
  return request({
    url: '/user/user_list',
    method: 'post',
    data
  })
}